<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos  -->
			<title>Docs for page DomBase.functions.php</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
						<script src="../media/lib/classTree.js"></script>
												<script language="javascript" type="text/javascript">
				var imgPlus = new Image();
				var imgMinus = new Image();
				imgPlus.src = "../media/images/plus.png";
				imgMinus.src = "../media/images/minus.png";
				
				function showNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgMinus.src;
					oTable.style.display = "block";
				}
				
				function hideNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgPlus.src;
					oTable.style.display = "none";
				}
				
				function nodeIsVisible(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
									break;
							}
					return (oTable && oTable.style.display == "block");
				}
				
				function toggleNodeVisibility(Node){
					if (nodeIsVisible(Node)){
						hideNode(Node);
					}else{
						showNode(Node);
					}
				}
			</script>
					</head>
		<body>
			<div class="page-body">			
<h2 class="file-name"><img src="../media/images/Page_logo.png" alt="File" style="vertical-align: middle">/libs/DomBase/DomBase.functions.php</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-functions">Functions</a>
			</div>
	<div class="info-box-body">	
		<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">author:</span> Oliver Leisalu</li>
				<li><span class="field">filesource:</span> <a href="../__filesource/fsource_DomBase__libsDomBaseDomBase.functions.php.html">Source Code for this file</a></li>
			</ul>
		
			</div>
</div>
		

	
	
	
	<a name="sec-functions"></a>	
	<div class="info-box">
		<div class="info-box-title">Functions</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<span class="disabled">Functions</span>
		</div>
		<div class="info-box-body">	
			<a name="functionarray2String" id="functionarray2String"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">array2String</span> (line <span class="line-number"><a href="../__filesource/fsource_DomBase__libsDomBaseDomBase.functions.php.html#a28">28</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">author:</span> Oliver Leisalu</li>
			</ul>
	<div class="method-signature">
		<span class="method-result">String</span>
		<span class="method-name">
			array2String
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$array</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$array</span>			</li>
				</ul>
		
	
</div>
<a name="functionarrayFlipTrue" id="functionarrayFlipTrue"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">arrayFlipTrue</span> (line <span class="line-number"><a href="../__filesource/fsource_DomBase__libsDomBaseDomBase.functions.php.html#a94">94</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Flippes array and sets all values to true. Useful for DomFG multiSelects.</p>
	<ul class="tags">
				<li><span class="field">author:</span> Oliver Leisalu</li>
			</ul>
	<div class="method-signature">
		<span class="method-result">Array</span>
		<span class="method-name">
			arrayFlipTrue
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$array</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$array</span>			</li>
				</ul>
		
	
</div>
<a name="functionarrayMerge" id="functionarrayMerge"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">arrayMerge</span> (line <span class="line-number"><a href="../__filesource/fsource_DomBase__libsDomBaseDomBase.functions.php.html#a77">77</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Merges two arrays and maintaints index associations.</p>
	<ul class="tags">
				<li><span class="field">author:</span> Oliver Leisalu</li>
			</ul>
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			arrayMerge
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$array</span>, <span class="var-type"></span>&nbsp;<span class="var-name">&$array2</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$array</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">&$array2</span>			</li>
				</ul>
		
	
</div>
<a name="functionarrayReOrder" id="functionarrayReOrder"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">arrayReOrder</span> (line <span class="line-number"><a href="../__filesource/fsource_DomBase__libsDomBaseDomBase.functions.php.html#a57">57</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">author:</span> Oliver Leisalu</li>
				<li><span class="field">deprecated:</span> </li>
			</ul>
	<div class="method-signature">
		<span class="method-result">Array</span>
		<span class="method-name">
			arrayReOrder
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$array</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">&$array</span>			</li>
				</ul>
		
	
</div>
<a name="functionbr2nl" id="functionbr2nl"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">br2nl</span> (line <span class="line-number"><a href="../__filesource/fsource_DomBase__libsDomBaseDomBase.functions.php.html#a18">18</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">author:</span> Oliver Leisalu</li>
				<li><span class="field">deprecated:</span> </li>
			</ul>
	<div class="method-signature">
		<span class="method-result">String</span>
		<span class="method-name">
			br2nl
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$txt</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$txt</span>			</li>
				</ul>
		
	
</div>
<a name="functionget_called_class" id="functionget_called_class"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">get_called_class</span> (line <span class="line-number"><a href="../__filesource/fsource_DomBase__libsDomBaseDomBase.functions.php.html#a135">135</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Return called class name</p>
<p class="description"><p>Usage:</p></p>
	<ul class="tags">
				<li><span class="field">author:</span> Michael Grenier</li>
			</ul>
	<div class="method-signature">
		<span class="method-result">String</span>
		<span class="method-name">
			get_called_class
		</span>
					([<span class="var-type">int</span>&nbsp;<span class="var-name">$i_level</span> = <span class="var-default">1</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$i_level</span><span class="var-description">: optional</span>			</li>
				</ul>
		
	
</div>
<a name="functiongotoUrl" id="functiongotoUrl"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">gotoUrl</span> (line <span class="line-number"><a href="../__filesource/fsource_DomBase__libsDomBaseDomBase.functions.php.html#a6">6</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">author:</span> Oliver Leisalu</li>
				<li><span class="field">filesource:</span> <a href="../__filesource/fsource_DomBase__libsDomBaseDomBase.functions.php.html">Source Code for this file</a></li>
			</ul>
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			gotoUrl
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$url</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$time</span> = <span class="var-default">0</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$url</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$time</span>			</li>
				</ul>
		
	
</div>
<a name="functionintArray" id="functionintArray"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">intArray</span> (line <span class="line-number"><a href="../__filesource/fsource_DomBase__libsDomBaseDomBase.functions.php.html#a66">66</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">author:</span> Oliver Leisalu</li>
			</ul>
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			intArray
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$start</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$end</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$start</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$end</span>			</li>
				</ul>
		
	
</div>
<a name="functionnatksort" id="functionnatksort"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">natksort</span> (line <span class="line-number"><a href="../__filesource/fsource_DomBase__libsDomBaseDomBase.functions.php.html#a105">105</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Sort an array by keys using a &quot;natural order&quot; algorithm</p>
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			natksort
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$array</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$array</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$array</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">&$array</span>			</li>
				</ul>
		
	
</div>
<a name="functionsortToTree" id="functionsortToTree"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">sortToTree</span> (line <span class="line-number"><a href="../__filesource/fsource_DomBase__libsDomBaseDomBase.functions.php.html#a218">218</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Sort all elements into an array where each parent is follewed by its children.</p>
<p class="description"><p>Sample</p></p>
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			sortToTree
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$elements</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$config</span> = <span class="var-default">array()</span>], <span class="var-type">array</span>&nbsp;<span class="var-name">$elements</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$elements</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$config</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">&$elements</span>			</li>
				</ul>
		
	
</div>
<a name="functiontac" id="functiontac"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">tac</span> (line <span class="line-number"><a href="../__filesource/fsource_DomBase__libsDomBaseDomBase.functions.php.html#a44">44</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">author:</span> Oliver Leisalu</li>
				<li><span class="field">deprecated:</span> </li>
			</ul>
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			tac
		</span>
					([<span class="var-type"></span>&nbsp;<span class="var-name">$mes</span> = <span class="var-default">&#039;&#039;</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$nr</span> = <span class="var-default">0</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$mes</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$nr</span>			</li>
				</ul>
		
	
</div>
		</div>
	</div>
	
	<p class="notes" id="credit">
		Documentation generated on Fri, 24 Sep 2010 21:13:14 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a>
	</p>
	</div></body>
</html>